﻿using Pepper.Temple.WPF.Core.Interfaces.Services;
using Pepper.Temple.WPF.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pepper.Temple.WPF.Shared.Services
{
    public class LocalTokenService : ITokenService
    {
        public int UserID { get; set; }
        public string UserName { get; set; }
        public string UserAccount { get; set; }
        public string UserToken { get; set; }

        public Result<string> RefreshUserToken()
        {
            string token = Guid.NewGuid().ToString();
            UserToken = token;
            return Result<string>.Success(token);
        }
    }
}
